package the.world.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import the.world.bean.MessageList;
import the.world.bean.Navigation;
import the.world.bean.SortStategy;

import java.util.List;
@Mapper
public interface ListMapper {
    List<MessageList> listAllByOption(@Param("currentPage") int offset, @Param("pageSize") int pageSize);
    List<SortStategy> listAllByList();

    List<MessageList> selectByStrategyId(@Param("currentPage") int offset, @Param("pageSize") int pageSize,@Param("id") int id);

    List<MessageList> selectByName(@Param("currentPage") int currentPage,@Param("pageSize") int pageSize,@Param("value") String value);

    int totalCount();
}
